package com.companyName.sample.common.constant;

public enum ResponseMsg {
	SUCCESS(1, "成功"),
	EXCEPTION(-1, "发生异常"),
	VALIDATE_EXCEPTION(-2, "校验异常"),
	OBJECT_NOT_AVAILABLE(-100101, "对象不可用"),
	LOGINTYPE_INVALID(-100100, "无效的登录类型");

	/*
	public static final int SUCCESS_CODE = 1;
	public static final String SUCCESS_MSG = "成功";

	public static final int EXCEPTION_CODE = -1;
	public static final String EXCEPTION_MSG = "系统异常";
	public static final int VALIDATE_EXCEPTION_CODE = -2;
	public static final String VALIDATE_EXCEPTION_MSG = "";

	public static final int LOGINTYPE_INVALID_CODE = -100100;
	public static final int JSON_EXCEPTION_CODE = -10000;
	public static final int PARSE_EXCEPTION_CODE = -10001;
	public static final int AES_EXCEPTION_CODE = -10002;
	public static final int OBJECT_NOT_AVAILABLE_CODE = 20901;


	public static final int ERR_INVALID_TOKEN_TYPE = 20301;
	public static final int ERR_INVALID_USER_ID = 20302;
	public static final int ERR_USER_LOCKED = 20303;
	public static final int ERR_USER_EXISTED = 20304;*/

	private int code;
	private String msg;

	/**
	 * @param code
	 * @param msg
	 */
	ResponseMsg(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}




}
